﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ViewAll.ascx.cs" Inherits="Team4Mock.UserControl.Team.ViewAll" %>
<style type="text/css">
    .style3
    {
        width: 159px;
    }
    .style4
    {
        width: 145px;
    }
    .style5
    {
        width: 132px;
    }
    .style6
    {
        width: 216px;
    }
</style>
<script type="text/javascript">
    function PopupBusiness() {
         window.open("/FormView/PopupBusiness.aspx", 'popUpWindow', 'height=500,width=800,left=300,top=100,resizable=No,scrollbars=No,toolbar=no,menubar=no,location=no,directories=no, status=No');
    }
    function PopupAddress() {
        window.open("/FormView/PopupAddress.aspx", 'popUpWindow', 'height=500,width=800,left=300,top=100,resizable=No,scrollbars=No,toolbar=no,menubar=no,location=no,directories=no, status=No');
    }
    function PopupContact() {
        window.open("/FormView/PopupContact.aspx", 'popUpWindow', 'height=500,width=800,left=300,top=100,resizable=No,scrollbars=No,toolbar=no,menubar=no,location=no,directories=no, status=No');
    }
    
</script>

<fieldset style="width: 760px;">
    <legend style="height: 25px; background-color: #465c71; -webkit-border-radius: 5px 5px 0px 0px;
        color: #dde4ec;font-size:18px;">Team Maintenance</legend>
    <asp:Panel ID="pnView" runat="server">
        <div id="Directorate" class="tab_content">
            <div style="width: 509px; float: left; height: 32px; font-size: 15px; line-height: 32px;">
                <a href="#">All</a>&nbsp;&nbsp;| <a href="#">0-9</a>&nbsp;&nbsp;| <a href="#">A-B-C-D-E</a>&nbsp;&nbsp;|
                <a href="#">F-G-H-I-J</a>&nbsp;&nbsp;| <a href="#">K-L-M-N</a>&nbsp;&nbsp;| <a href="#">
                    O-P-Q-R</a>&nbsp;&nbsp;| <a href="#">S-T-U-V</a>&nbsp;&nbsp;| <a href="#">W-X-Y-Z</a>
            </div>
            <div style="float: left; height: 32px; line-height: 32px;">
                <asp:Button ID="btnCreate" runat="server" Text="Create" CssClass="button" OnClick="btnCreate_Click" />&nbsp;&nbsp;
                <asp:CheckBox ID="CheckBox1" runat="server" Text="In-active" />
            </div>
            <div style="width: 784px;">
                <asp:GridView ID="gvTeam" AutoGenerateColumns="False" DataKeyNames="ID" runat="server"
                    Width="709px" Font-Size="15px" BackColor="White" BorderColor="#CCCCCC" AllowSorting="true"
                    BorderStyle="None" BorderWidth="1px" CellPadding="3">
                    <Columns>
                        <asp:TemplateField HeaderText="ID" Visible="false">
                            <ItemTemplate>
                                <asp:Label ID="lbID" runat="server" Text='<%#Eval("ID") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Team Name">
                            <ItemTemplate>
                                <asp:HyperLink ID="OrgName" NavigateUrl='<%#"/FormView/Team.aspx?"+"ID="+Eval("ID") %>' runat="server" Text='<%#Eval("Team Name") %>'></asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Head Office Address Line 1">
                            <ItemTemplate>
                                <asp:Label ID="lbHOA" runat="server" Text='<%#Eval("Head Office Address Line 1") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Post Code">
                            <ItemTemplate>
                                <asp:Label ID="lbPostcode" runat="server" Text='<%#Eval("Post Code") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Contact">
                            <ItemTemplate>
                                <asp:Label ID="lbContact" runat="server" Text='<%#Eval("Contact") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Is Active">
                            <ItemTemplate>
                                <asp:Label ID="lbActive" runat="server" Text='<%#Eval("Is Active") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                    <RowStyle ForeColor="#000066" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                </asp:GridView>
            </div>
        </div>
    </asp:Panel>
    <asp:Panel ID="pnCreate" runat="server">
        <div style="width: 741px;">
            <ul class="tabs" style="width: 759px; float: left;">
                <li><a href="#" class="active tab">Team Details</a></li>
            </ul>
            <br />
            <div class="tab_container" style="float:left; width: 750px;">
                <div id="Details1" class="tab_content">
                    <table cellpadding="0px" cellspacing="0px" border="0" 
                        style="font-size: 15px; width: 745px;">
                        <tr>
                            <td class="style3">
                               Team Name <span style="color: Red;">(*)</span>
                            </td>
                            <td class="style6">
                                <asp:TextBox ID="txtDirecName" runat="server" Width="186px"></asp:TextBox>
                            </td>
                            <td class="style4">
                                Type of Business <span style="color: Red;">(*)</span>
                            </td>
                            <td>
                                <input type="text" id="txtBusID" readonly="readonly"  style="width:114px" />
                                
                                <a href="#" onclick="PopupBusiness();return false;">Lookup</a>
                            </td>
                        </tr>
                        <tr>
                            <td class="style3">
                                Team Short Description
                            </td>
                            <td class="style6">
                                <asp:TextBox ID="txtDesShort" runat="server" TextMode="MultiLine" Height="63px" Width="186px"
                                    Style="margin-left: 0px"></asp:TextBox>
                            </td>
                            <td class="style4">
                                SIC Code
                            </td>
                            <td>
                                <input type="text" id="txtSICCode" style="width: 180px;" readonly="readonly" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style3">
                                Lead Contact
                            </td>
                            <td class="style6">
                                <input type="text" id="txtContactID" readonly="readonly" style="width:114px;" />
                                  &nbsp;&nbsp;<a href="#" onclick="PopupContact();return false;">Lookup</a>
                            </td>
                            <td class="style4">
                                Team Full Description
                            </td>
                            <td>
                                <asp:TextBox ID="txtDesFull" runat="server" TextMode="MultiLine" Height="63px" Width="177px"
                                    Style="margin-left: 0px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Copy Address From
                            </td>
                            <td>
                                <asp:RadioButton ID="rdOrg" runat="server" Text="Organisation" />&nbsp;&nbsp;&nbsp;
                                <asp:RadioButton ID="rdParent" runat="server" Text="Parent" />
                            </td>
                            <td class="style4">
                                Phone Number
                            </td>
                            <td>
                                <asp:TextBox ID="txtPhone" runat="server" Width="180px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style3">
                                Address Line 1 <span style="color: Red;">(*)</span>
                            </td>
                            <td class="style6">
                                <asp:TextBox ID="txtAdd1" runat="server" Width="186px"></asp:TextBox>
                            </td>
                            <td class="style4">
                                Fax
                            </td>
                            <td>
                                <asp:TextBox ID="txtFax" runat="server" Width="180px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style3">
                                Address Line 2
                            </td>
                            <td class="style6">
                                <asp:TextBox ID="txtAdd2" runat="server" Width="186px"></asp:TextBox>
                            </td>
                            <td class="style4">
                                Email
                            </td>
                            <td>
                                <asp:TextBox ID="txtEmail" runat="server" Width="180px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style3">
                                Address Line 3
                            </td>
                            <td class="style6">
                                <asp:TextBox ID="txtAdd3" runat="server" Width="186px"></asp:TextBox>
                            </td>
                            <td class="style4">
                                Web Address
                            </td>
                            <td>
                                <asp:TextBox ID="txtWeb" runat="server" Width="180px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style3">
                                Post Code <span style="color: Red;">(*)</span>
                            </td>
                            <td class="style6">
                                <input type="text" id="txtPostCode" style="width: 114px;" readonly="readonly" />
                                &nbsp;&nbsp;<a href="#" onclick="PopupAddress();return false;">Lookup</a>
                            </td>
                            <td class="style4">
                                Charity Number
                            </td>
                            <td>
                                <asp:TextBox ID="txtCharNum" runat="server" Width="180px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style3">
                                Town/Village/City
                            </td>
                            <td class="style6">
                                <input type="text" id="txtTown" style="width:186px;" />
                            </td>
                            <td class="style4">
                                Company Number
                            </td>
                            <td>
                                <asp:TextBox ID="txtComNum" runat="server" Width="180px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style3">
                                County
                            </td>
                            <td class="style6">
                                <input type="text" id="txtCounty" style="width:186px;" />
                            </td>
                            <td class="style4">
                                Nation/Country
                            </td>
                            <td>
                                <asp:DropDownList ID="dlCountry" runat="server" Width="180px">
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="button" 
                onclick="btnSave_Click" />
            <asp:Button ID="btnBack" runat="server" Text="Back" CssClass="button" 
                onclick="btnBack_Click" />
        </div>
    </asp:Panel>
</fieldset>